﻿using System;
using System.ServiceModel;
using Artech.PetShop.Common;
using Artech.PetShop.Orders.BusinessEntity;
namespace Artech.PetShop.Products.Service.Interface
{
    [ServiceContract(Namespace="http://www.artech.com/petshop/")]
    public interface IProductService
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        Product[] GetAllProducts();

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        Product GetProductByID(Guid productID);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        int GetInventory(Guid productID);
    }
}
